Skip to content

Conversation

@sonalideepthi777
Copy link

@sonalideepthi777 sonalideepthi777 commented Mar 12, 2025

Description

Manage operations related to Smart Licensing in Cisco Catalyst Center.

Type of Change

  • Bug fix
  • [yes] New feature
  • Breaking change
  • [yes] Documentation update

Checklist

  • [yes] My code follows the style guidelines of this project
  • [yes] I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • All the sanity checks have been completed and the sanity test cases have been executed

Ansible Best Practices

  • Tasks are idempotent (can be run multiple times without changing state)
  • Variables and secrets are handled securely (e.g., using ansible-vault or environment variables)
  • Playbooks are modular and reusable
  • Handlers are used for actions that need to run on change

Documentation

  • All options and parameters are documented clearly.
  • Examples are provided and tested.
  • Notes and limitations are clearly stated.

Screenshots (if applicable)

Notes to Reviewers

Copy link

@md-rafeek md-rafeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change the yaml doc string

dnac_log: "{{dnac_log}}"
state: merged
config:
- smart_account_name: "Solutions Team - IaC for CatC"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adjust the indentation


self.log("Retrieving the smart account information '{0}'".format(config))

param = {}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you passing empty param ?

Comment on lines +421 to +427
from ansible.module_utils.basic import AnsibleModule
from ansible_collections.cisco.dnac.plugins.module_utils.dnac import (
DnacBase,
validate_list_of_dicts,
)


Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The validate_list_of_dicts from dnac is outdated. Please make sure to import it from ansible_collections.cisco.dnac.plugins.module_utils.validation and test the workflow one again for all the cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants